package com.example.day04;

import java.util.Date;

public class Customer {
    private  int id;
    private  String name;
    private  String phone;
    private Date  registerDate;

//    private  boolean flag;
//
//    public boolean getFlag() {
//        return flag;
//    }
//
//    public void setFlag(boolean flag) {
//        this.flag = flag;
//    }


    public Customer() {
    }

    public Customer(int id, String name, String phone, Date registerDate) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.registerDate = registerDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", registerDate=" + registerDate +
                '}';
    }
}
